var express = require('express');
var router = express.Router();
//引入C层
const { addSupplier,getSupplier,delSupplier,findSupplier,changeSupplier,totalSupplier } = require('../controllers/supplier')


router.get('/add', addSupplier);//新增供应商
router.get('/get', getSupplier);//获取供应商
router.post('/del', delSupplier);//删除供应商
router.get('/find', findSupplier);//查找供应商
router.post('/change', changeSupplier);//查找供应商
router.post('/total', totalSupplier);//查找总条数

module.exports = router;